package com.ssy.lingxi.member.merchant.api.fallback.inner;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.api.feign.inner.MemberOrderCommentControllerFeign;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberOrderCommentVO;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

/**
 * 会员评价内部feign降级
 * @author yzc
 * @version 2.0.0
 * @date 2021/1/6
 */
@Component
public class MemberOrderCommentControllerFeignFallback implements MemberOrderCommentControllerFeign {

    /**
     * 保存订单数据
     * @param memberOrderCommentVO 接口参数
     * @return 返回结果
     */
    @Override
    public Wrapper<Void> saveMemberOrderComment(@Valid MemberOrderCommentVO memberOrderCommentVO) {
        return Wrapper.fail(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }
}
